import request from '@/utils/request'

// 查询订单关闭原因表列表
export function listReasonstop(query) {
  return request({
    url: '/service/reasonstop/list',
    method: 'get',
    params: query
  })
}

// 查询订单关闭原因表详细
export function getReasonstop(reasonId) {
  return request({
    url: '/service/reasonstop/' + reasonId,
    method: 'get'
  })
}

// 新增订单关闭原因表
export function addReasonstop(data) {
  return request({
    url: '/service/reasonstop',
    method: 'post',
    data: data
  })
}

// 修改订单关闭原因表
export function updateReasonstop(data) {
  return request({
    url: '/service/reasonstop',
    method: 'put',
    data: data
  })
}

// 删除订单关闭原因表
export function delReasonstop(reasonId) {
  return request({
    url: '/service/reasonstop/' + reasonId,
    method: 'delete'
  })
}
